<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
  PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<topic id="topic1" xml:lang="en">
  <title id="gi143896">pg_conversion</title>
  <body>
    <p>The <codeph>pg_conversion</codeph> system catalog table describes the available encoding
      conversion procedures as defined by <codeph>CREATE CONVERSION</codeph>.</p>
    <table id="gi143898">
      <title>pg_catalog.pg_conversion</title>
      <tgroup cols="4">
        <colspec colnum="1" colname="col1" colwidth="131pt"/>
        <colspec colnum="2" colname="col2" colwidth="75pt"/>
        <colspec colnum="3" colname="col3" colwidth="101.25pt"/>
        <colspec colnum="4" colname="col4" colwidth="147pt"/>
        <thead>
          <row>
            <entry colname="col1">column</entry>
            <entry colname="col2">type</entry>
            <entry colname="col3">references</entry>
            <entry colname="col4">description</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry colname="col1">
              <codeph>conname</codeph>
            </entry>
            <entry colname="col2">name</entry>
            <entry colname="col3"/>
            <entry colname="col4">Conversion name (unique within a namespace).</entry>
          </row>
          <row>
            <entry colname="col1">
              <codeph>connamespace</codeph>
            </entry>
            <entry colname="col2">oid</entry>
            <entry colname="col3">pg_namespace.oid</entry>
            <entry colname="col4">The OID of the namespace (schema) that contains this
              conversion.</entry>
          </row>
          <row>
            <entry colname="col1">
              <codeph>conowner</codeph>
            </entry>
            <entry colname="col2">oid</entry>
            <entry colname="col3">pg_authid.oid</entry>
            <entry colname="col4">Owner of the conversion.</entry>
          </row>
          <row>
            <entry colname="col1">
              <codeph>conforencoding</codeph>
            </entry>
            <entry colname="col2">int4</entry>
            <entry colname="col3"/>
            <entry colname="col4">Source encoding ID.</entry>
          </row>
          <row>
            <entry colname="col1">
              <codeph>contoencoding</codeph>
            </entry>
            <entry colname="col2">int4</entry>
            <entry colname="col3"/>
            <entry colname="col4">Destination encoding ID.</entry>
          </row>
          <row>
            <entry colname="col1">
              <codeph>conproc</codeph>
            </entry>
            <entry colname="col2">regproc</entry>
            <entry colname="col3">pg_proc.oid</entry>
            <entry colname="col4">Conversion procedure.</entry>
          </row>
          <row>
            <entry colname="col1">
              <codeph>condefault</codeph>
            </entry>
            <entry colname="col2">boolean </entry>
            <entry colname="col3"/>
            <entry colname="col4">True if this is the default conversion.</entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </body>
</topic>
